package com.sky.dao;

import com.sky.model.BaseModel;
import com.sky.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(String id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByloginInfo(@Param(value = "username") String username, @Param(value = "password") String password);

    List<BaseModel> query(User user);
}